{% comment %}
<!--
This template sets the layout for a one-table form,
and will be included in the form template file.
-->
{% endcomment %}

<table>
  {% if form.non_field_errors %}
  <tr>
    <td colspan="2">
	  <ul class="errorlist"> 
      {% for error in form.non_field_errors %}
      <li>{{ error }}</li>
      {% endfor %}
      </ul>
    </td>
  </tr>
  {% endif %}
  {% for field in form %}
  <tr>
    <th>
      <label for="{{ field.html_name }}">{{ field.label }}:</label>
    </th>
    <td>
	  {% if field.errors %}
	  <ul class="errorlist">
	    {% for error in field.errors %}
		  <li>{{ error }}</li>
		{% endfor %}
	  </ul>
	  {% endif %}
      {{ field }}
    </td>
  </tr>
  {% endfor %}
</table>